package nc.vo.gsp.pub;

import java.util.HashMap;

import nc.vo.gsp.pub.bill.SwitchObject;
import nc.vo.pub.CircularlyAccessibleValueObject;
import nc.vo.pub.ValidationException;
import nc.vo.pub.lang.UFDouble;

@SuppressWarnings("serial")
public class DayATPVO extends CircularlyAccessibleValueObject {

	public DayATPVO() {
		super();
	}

	HashMap m_hmKeyValue = new HashMap();

	public static void main(String[] args) {
	}

	public String[] getAttributeNames() {
		return null;
	}

	public Object getAttributeValue(String attributeName) {
		if (m_hmKeyValue.containsKey(attributeName)) {
			if (m_hmKeyValue.get(attributeName) instanceof UFDouble) {
				return SwitchObject.switchObjToUFDouble(m_hmKeyValue
						.get(attributeName));
			} else
				return m_hmKeyValue.get(attributeName);
		}
		return null;
	}

	@SuppressWarnings("unchecked")
	public void setAttributeValue(String name, Object value) {
		if (!m_hmKeyValue.containsKey(name))
			m_hmKeyValue.put(name, value);
	}

	public String getEntityName() {
		return null;
	}

	public void validate() throws ValidationException {

	}
}
